go/types.Checker.index (method)

5 uses

	go/types (current package)
		builtins.go#L520: 			typ, size := check.index(arg, -1) // ok to continue with typ == Typ[Invalid]
		index.go#L207: 	check.index(index, length)
		index.go#L298: 			if _, v := check.index(expr, max); v >= 0 {
		index.go#L349: func (check *Checker) index(index ast.Expr, max int64) (typ Type, val int64) {
		literals.go#L361: 			if typ, i := check.index(kv.Key, length); isValid(typ) {